package cn.lg.soar.redis.model;

import lombok.Data;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Data
public class CacheEvictMessage {

    private String name;

    private Object key;

    private boolean allEntries;

    private Long sourceId;

    public CacheEvictMessage() {
    }

    public CacheEvictMessage(String name, boolean allEntries) {
        this.name = name;
        this.allEntries = allEntries;
    }

    public CacheEvictMessage(String name, Object key) {
        this.name = name;
        this.key = key;
    }

}